package com.heima.user;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;


/**
 * 用户服务
 */
@SpringBootApplication
@MapperScan("com.heima.user.mapper")
@EnableDiscoveryClient //引导类中加上注解`@EnableDiscoveryClient`可以让该服务注册到nacos注册中心上去
public class UserApplication {
    public static void main(String[] args) {
        SpringApplication.run(UserApplication.class);
    }
}
